package com.ecy.quadratic.ui.fragment;

import android.widget.ListView;

import com.ecy.quadratic.R;
import com.ecy.quadratic.adapter.ComicAdapter;
import com.ecy.quadratic.beans.Comic;
import com.ecy.quadratic.reader.base.BaseFragment;
import com.ecy.quadratic.reader.component.AppComponent;

import java.util.ArrayList;
import java.util.List;

import butterknife.Bind;


/**
 * Created by Administrator on 2016/3/31.
 */
public class NovelBrowserFragment extends BaseFragment {

    @Bind(R.id.comic_browser_listview)
    ListView mComicListView;

    private ComicAdapter mAdapter;
    private List<Comic> mComicList;

    public NovelBrowserFragment() {
    }

    @Override
    public int getLayoutResId() {
        return R.layout.fragment_comic_browser;
    }

    @Override
    protected void setupActivityComponent(AppComponent appComponent) {

    }

    @Override
    public void attachView() {

    }

    @Override
    public void initData() {
        mComicList = new ArrayList<Comic>();
        mAdapter = new ComicAdapter(getContext(), mComicList);
    }

    @Override
    public void configViews() {
        mComicListView.setAdapter(mAdapter);
    }
}
